package com.cloudcc.mobile.entity;

import java.io.Serializable;

/**
 * 消息IM返回的额数据格式对象
 * @author Administrator
 *
 */
public class IMMessage extends EntityBase implements Serializable{
	private String toUserId ;// 接收方用户id
	private String fromUserId;//发送方用户id
	private String fromUserName;//谁发的
	private String toUserName;//发给谁的
	private String message;//string
	private String messageType;//1，文本，2语音，3图片
	private String compressionRatio;
	private String time;//接受的时间
	private String isNew;//是否是新消息
	private String messageId;//取数据通过此属性来取
	public int fromOrTo;// 0 是收到的消息，1是发送的消息
	public boolean isSuccess;//是否发送成功
	public long total;
	public long current;
	public IMMessage(String toUserId, String fromUserId, String fromUserName,
			String toUserName, String message, String messageType,
			String compressionRatio, String time, String isNew,
			String messageId, int fromOrTo, boolean isSuccess, long total,
			long current) {
		super();
		this.toUserId = toUserId;
		this.fromUserId = fromUserId;
		this.fromUserName = fromUserName;
		this.toUserName = toUserName;
		this.message = message;
		this.messageType = messageType;
		this.compressionRatio = compressionRatio;
		this.time = time;
		this.isNew = isNew;
		this.messageId = messageId;
		this.fromOrTo = fromOrTo;
		this.isSuccess = isSuccess;
		this.total = total;
		this.current = current;
	}
	public IMMessage() {
		super();
	}
	public String getToUserId() {
		return toUserId;
	}
	public void setToUserId(String toUserId) {
		this.toUserId = toUserId;
	}
	public String getFromUserId() {
		return fromUserId;
	}
	public void setFromUserId(String fromUserId) {
		this.fromUserId = fromUserId;
	}
	public String getFromUserName() {
		return fromUserName;
	}
	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}
	public String getToUserName() {
		return toUserName;
	}
	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getMessageType() {
		return messageType;
	}
	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}
	public String getCompressionRatio() {
		return compressionRatio;
	}
	public void setCompressionRatio(String compressionRatio) {
		this.compressionRatio = compressionRatio;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getIsNew() {
		return isNew;
	}
	public void setIsNew(String isNew) {
		this.isNew = isNew;
	}
	public String getMessageId() {
		return messageId;
	}
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}
	public int getFromOrTo() {
		return fromOrTo;
	}
	public void setFromOrTo(int fromOrTo) {
		this.fromOrTo = fromOrTo;
	}
	public boolean isSuccess() {
		return isSuccess;
	}
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public long getCurrent() {
		return current;
	}
	public void setCurrent(long current) {
		this.current = current;
	}
	
	
}
